home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc A) / Acorn User China CD-ROM (UK) (Disc A).bin / DEMON / DEVELOPER / HYPERMAIL.ARC / !hypermail_c_mem < prev    next >
Encoding:
Text File  |  1994-07-21  |  359 b   |  23 lines

  1. /*
  2. ** Copyright (C) 1994, Enterprise Integration Technologies Corp.        
  3. ** All Rights Reserved.
  4. ** Kevin Hughes, kevinh@eit.com 
  5. ** 7/14/94
  6. */
  7.  
  8. #include "hypermail.h"
  9. #include "mem.h"
  10.  
  11. /* Just a tiny malloc() error checker!
  12. */
  13.  
  14. void *emalloc(i)
  15.      int i;
  16. {
  17.     void *p;
  18.  
  19.     if ((p = (void *) malloc(i)) == NULL)
  20.         progerr("Ran out of memory!");
  21.     return p;
  22. }
  23.